import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElIcons from '@element-plus/icons-vue';


import { createPinia } from "pinia"


// 注册所有图标为全局组件
for (const [key, component] of Object.entries(ElIcons)) {
    app.component(key, component);
}


const app = createApp(App);
app.use(router)
app.use(ElementPlus)
app.use(createPinia())
app.mount('#app')
